home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
scope
/
151-175
/
scopedisk168
/
asmmacros
/
am_02
/
currentdir.i
< prev
next >
Wrap
Text File
|
1995-03-19
|
1KB
|
57 lines
NOLIST
CurrentDir MACRO ; 14 Sept 88
*------------------------------; Start of CurrentDir macro.
; Set up D1 for the _LVOCurrentDir function.
NOLIST
IFEQ ReEntrant-1
LIST
MOVE.L \1(A5),D1
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L \1,D1
NOLIST
ENDC
LIST
CallLib CurrentDir,dos ; Call CurrentDir.
NOLIST
IFEQ NARG-2 ; If <OldDirLockName> is specified,
LIST
; Save the old dir lock under the specified
; name.
NOLIST
IFEQ ReEntrant-1
LIST
DefDS \2,1
MOVE.L D0,\2(A5)
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L D0,\2
DS_BSS \2,1,.L
NOLIST
ENDC
ENDC
IFEQ NARG-1
; If <OldDirLockName> is not specified, then
IFEQ ReEntrant-1
LIST
DefDS OldDirLock,1
MOVE.L D0,OldDirLock(A5) ; Save the old directory lock at "OldDirLock".
NOLIST
ENDC
IFNE ReEntrant-1
LIST
MOVE.L D0,OldDirLock ; Save the old directory lock at "OldDirLock".
DS_BSS OldDirLock,1,.L
NOLIST
ENDC
ENDC
LIST
TST.L D0 ; Make the zero flag indicate if old was root.
*------------------------------; End of CurrentDir macro.
ENDM
LIST